library _;

import 'package:flutter/material.dart';
import 'package:flutter_app/View/MyLoader.dart';
import 'package:flutter_yfree/YFree.dart';

part 'controller.dart';

class ShowContentPage extends YPage {
  ShowContentPage(this.title, this.jkid);

  String jkid, title;

  String? content;

  @override
  void yOnCreate() {
    controller_initData();
  }

  @override
  Widget yBuild(BuildContext context) {
    return Column(
      children: [
        YAppBar(title: title),
        Expanded(
          child: content == null
              ? MyLoader()
              : SingleChildScrollView(
                  child: Container(
                    width: yScreenSize().width,
                    padding: EdgeInsets.all(10),
                    child: Text(content!),
                  ),
                ),
        ),
      ],
    );
  }
}
